package com.hyl.springbootappinfo.service.impl;

import com.hyl.springbootappinfo.dao.Backend_userMapper;
import com.hyl.springbootappinfo.pojo.App_info;
import com.hyl.springbootappinfo.pojo.Backend_user;
import com.hyl.springbootappinfo.service.Backend_userService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Backend_userServiceImpl implements Backend_userService {

    @Resource
    private Backend_userMapper backend_userMapper;

    @Override
    public Backend_user dologin(String userCode, String userPassword) {
        return backend_userMapper.dologin(userCode,userPassword);
    }

    @Override
    public App_info appcheck(Integer id, Integer versionId) {
        return backend_userMapper.appcheck(id, versionId);
    }

    @Override
    public int statusmodify(Integer id, Integer status) {
        return backend_userMapper.statusmodify(id, status);
    }

    @Override
    public List<App_info> applists(Integer pageindex, Integer pagesize, String softwareName, Integer flatformId, Integer categoryLevel3, Integer categoryLevel1, Integer categoryLevel2) {
        return backend_userMapper.applists(pageindex, pagesize, softwareName, flatformId, categoryLevel3, categoryLevel1, categoryLevel2);
    }


}
